// Copyright (C) Kumo inc. and its affiliates.
// Author: Jeff.li lijippy@163.com
// All rights reserved.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.
//

#include <nebula/version.h>
#if NEBULA_HAVE_RUNTIME_AVX512_SUPPORTED
#include <nebula/bits/bpacking_avx512.h>
#include <nebula/bits/bpacking_simd512_generated_internal.h>
#include <nebula/bits/bpacking_simd_internal.h>

namespace nebula {
namespace internal {

int unpack32_avx512(const uint32_t* in, uint32_t* out, int batch_size, int num_bits) {
  return unpack32_specialized<UnpackBits512<DispatchLevel::AVX512>>(in, out, batch_size,
                                                                    num_bits);
}

}  // namespace internal
}  // namespace nebula
#endif